//
//  JSMLeavingMoreProvinceModel.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingMoreProvinceModel.h"

@implementation JSMLeavingMoreProvinceModel

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.nameStr = [aDecoder decodeObjectForKey:@"nameStr"];
        self.iconStr = [aDecoder decodeObjectForKey:@"iconStr"];
        self.keyword = [aDecoder decodeObjectForKey:@"keyword"];
        self.trail_count = [aDecoder decodeObjectForKey:@"trail_count"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.nameStr forKey:@"nameStr"];
    [aCoder encodeObject:self.iconStr forKey:@"iconStr"];
    [aCoder encodeObject:self.keyword forKey:@"keyword"];
    [aCoder encodeObject:self.trail_count forKey:@"trail_count"];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"icon"]) {
        self.iconStr = value;
    }
    if ([key isEqualToString:@"name"]) {
        self.nameStr = value;
    }
}

@end
